<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page import="com.bci.pwtz.mysql.model.ResourceType"%>
<%@page import="com.bci.pwtz.admin.service.ResourceTypeService"%>
<%@page import="com.bci.pwtz.mysql.model.Resource"%>
<%@page import="com.bci.pwtz.service.ResourceService"%>
<%@ page import="com.bci.pwtz.common.util.SpringUtil" %>
<%@ page import="com.bci.pwtz.common.util.PwtzUtils"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%	
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
	%>
	<% String resid = request.getParameter("resid"); 
	   ResourceService service =(ResourceService)SpringUtil.getBean("resourceService");
	   ResourceTypeService typeservice =(ResourceTypeService)SpringUtil.getBean("resTypeService");
	   Resource res= service.load(Long.valueOf(resid));
	   ResourceType rt= typeservice.load(res.getRestype());
	   String type = rt.getTypeName();
	%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<%=basePath %>web/css/style.css" rel="stylesheet" type="text/css"/>
<link href="<%=basePath %>web/css/index.css" rel="stylesheet" type="text/css"/>
<script src="<%=basePath %>web/js/jQuery.js" type="text/javascript"></script>
<script src="<%=basePath %>web/js/format.js" type="text/javascript"></script>
<script type="text/javascript" src="<%=basePath %>user/m/js/invitefriends.js"></script>
<title>资料内页</title>
</head>
<body>
<!-- 头部区域_begin -->
<div class="container">
	<div class="header">
		<p class="pwysj_p">配网云数据</p>
		<ul>
			<li class="li_cur"><a href="<%=basePath %>web/home.jsp" class="cur">首页</a></li>
			<li><a href="<%=basePath%>web/jjfa.jsp">解决方案</a></li>
			<li><a href="<%=basePath %>web/download.jsp">下载</a></li>
			<li><a href="<%=basePath %>web/experience.jsp">体验</a></li>
			<li><a href="<%=basePath %>web/about.jsp">关于</a></li>
		</ul>
		<div class="right">
			<a href="<%=basePath %>user/login.jsp" class="login">登 录</a>
			<a href="<%=basePath %>user/register.jsp" class="regist">注 册</a>
		</div>
	</div>
</div>
<!-- 头部区域_end -->

<!-- 主体区域_begin -->
<hr />
<div class="container about_box">
	<p class="path">当前位置： 首页 &gt; <%=type %> &gt; <%=res.getResname() %></p>
	<div class="article_box">
		<div class="title">
			<p class="p1"><%=res.getResname() %></p>
			<p class="p2">信息来源：<span><%=res.getSource()==null?"未知":res.getSource() %></span></p>
			<p class="p2">发布时间：<span><%=PwtzUtils.date2String(res.getPublishtime(),"yyyy-MM-dd")%></span></p>
			<%if(rt.getTypeId()==2) {%>
			<p class="p2"><span><a href="<%=res.getDownloadurl() %>">下载</a></span></p>
			<%} %>
		</div>
		 <%if(res.getRescontentlogo() !=null && !"".equals(res.getRescontentlogo() )){ %>
		<img src="<%=basePath+"Attachment/ResourcePIC/"+res.getRescontentlogo() %>" alt="" /><%} %>
		    <%=res.getRescontent() %>
						<div class="bdsharebuttonbox" style="float: right;margin-right: 50px" data-tag="share_1">
						<a class="bds_mshare" data-cmd="mshare"></a>
						<a class="bds_tsina" data-cmd="tsina"></a>
						<a class="bds_baidu" data-cmd="baidu"></a>
						<a class="bds_renren" data-cmd="renren"></a>
						<a class="bds_tqq" data-cmd="tqq"></a>
						<a class="bds_more" data-cmd="more">更多</a>
					</div>
					<script>
					var txt = $(".invite_code_desc").text();
						window._bd_share_config = {
							common : {
								bdText : '<%=res.getResname() %>',
								bdUrl: location.href
							},
							share : [{
								"bdSize" : 16
							}],
							slide : [{	   
								bdImg : 0,
								bdPos : "right",
								bdTop : 100
							}],
							image : [{
								viewType : 'list',
								viewPos : 'top',
								viewColor : 'black',
								viewSize : '16',
								viewList : ['qzone','tsina','huaban','tqq','renren']
							}],
							selectShare : [{
								"bdselectMiniList" : ['qzone','tqq','kaixin001','bdxc','tqf']
							}]
						}
						with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?cdnversion='+~(-new Date()/36e5)];
					</script>
	
	
</div>
<!-- 主体区域_end -->

<!-- 底部区域_begin -->
<%@ include file="/web/foot.jsp"%>
<!-- 底部区域_end -->
<script src="js/show_common.js" type="text/javascript"></script>
</body>
</html>
